<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">



<h:head>
	<title><h:outputText value="#{bundle['titulo_principal']}" /></title>

</h:head>

<h:body>
			<h:form id="formulario">
				
				<p:panel header="#{bundle['menu_esquematipoAtributonovo']}" id="painel"> 
					 <p:messages />
					<h:panelGrid columns="3" cellpadding="0" cellspacing="3">

						<h:column>
							<h:outputText value="#{bundle['lbl_nome']}" />
						</h:column>
						<h:column>
							<p:inputText id="nome" size="18" required="true"
								value="#{controle.nome}" />
						</h:column>
						<h:column>
							<p:message for="nome" />
						</h:column>

						<h:column>
							<h:outputText value="#{bundle['lbl_descricao']}" />
						</h:column>
						<h:column>
							<p:inputTextarea id="descricao" rows="2" maxHeight="400"
								style="font-size: 18px;" value="#{controle.tipoDeAtributo.descricao}" />
						</h:column>
						<h:column>
							<p:message for="descricao" />
						</h:column>

						<h:column>
							<h:outputText value="#{bundle['lbl_superior']}" />
						</h:column>
						<h:column>
							<p:selectManyMenu id="superiorT" value="#{controle.superiorT}"
								 style="font-size: 14px; max-height: 200px;">
								<f:selectItems value="#{controle.esquema.listas.tlista}"
                    var="Stipoatributo" itemLabel="#{Stipoatributo.nome}"
                    itemValue="#{Stipoatributo.nome}" />
						</p:selectManyMenu>
						</h:column>
						<h:column>
							<p:message for="superiorT" />
						</h:column>

						<h:column>
							<h:outputText value="#{bundle['lbl_ordenacao']}" />
						</h:column>
						<h:column>
							<p:selectOneMenu id="ordenacao" value="#{controle.tipoDeAtributo.ordenacao}"
								style="font-size: 14px; max-height: 200px; min-width: 300px">
								<f:selectItem itemLabel="Selecione um" itemValue="" />
								<f:selectItem itemLabel="case insensitive, space insensitive" itemValue="caseIgnoreOrderingMatch" />
								<f:selectItem itemLabel="case sensitive, space insensitive" itemValue="caseExactOrderingMatch" />
								<f:selectItem itemLabel="integerOrderingMatch" itemValue="integer" />
								<f:selectItem itemLabel="numerical" itemValue="numericStringOrderingMatch" />
								<f:selectItem itemLabel="octetStringOrderingMatch" itemValue="octet string" />
							</p:selectOneMenu>
						</h:column>
						<h:column>
							<p:message for="ordenacao" />
						</h:column>

						<h:column>
							<h:outputText value="#{bundle['lbl_igualdade']}" />
						</h:column>
						<h:column>
							<p:selectOneMenu id="igualdade" value="#{controle.tipoDeAtributo.igualdade}"
								style="font-size: 14px; max-height: 200px; min-width: 300px">
								<f:selectItem itemLabel="Selecione um" itemValue="" />
								<f:selectItem itemLabel="boolean" itemValue="booleanMatch" />
								<f:selectItem itemLabel="case insensitive, space insensitive" itemValue="caseIgnoreMatch" />
								<f:selectItem itemLabel="case sensitive, space insensitive" itemValue="caseExactMatch" />
								<f:selectItem itemLabel="distinguished name" itemValue="distinguishedNameMatch" />
								<f:selectItem itemLabel="integer" itemValue="integerMatch" />
								<f:selectItem itemLabel="numerical" itemValue="numericStringMatch" />
								<f:selectItem itemLabel="octet string" itemValue="octetStringMatch" />
								<f:selectItem itemLabel="object identifier" itemValue="objectIdentiferMatch" />
							</p:selectOneMenu>
						</h:column>
						<h:column>
							<p:message for="igualdade" />
						</h:column>

						<h:column>
							<h:outputText value="#{bundle['lbl_substring']}" />
						</h:column>
						<h:column>
							<p:selectOneMenu id="substring" value="#{controle.tipoDeAtributo.substring}"
								style="font-size: 14px; max-height: 200px; min-width: 300px">
								<f:selectItem itemLabel="Selecione um" itemValue="" />
								<f:selectItem itemLabel="caseIgnoreSubstringsMatch" itemValue="case insensitive, space insensitive" />
								<f:selectItem itemLabel="case sensitive, space insensitive" itemValue="caseExactSubstringsMatch" />
								<f:selectItem itemLabel="numerical" itemValue="numericStringSubstringsMatch" />
							</p:selectOneMenu>
						</h:column>
						<h:column>
							<p:message for="substring" />
						</h:column>

						<h:column>
							<h:outputText value="#{bundle['lbl_sintaxe']}" />
						</h:column>
						<h:column>
							<p:selectOneMenu id="sintaxe" value="#{controle.tipoDeAtributo.sintaxe}" activeIndex="0"
								style="font-size: 14px; max-height: 200px; min-width: 300px">
								<f:selectItem itemLabel="Selecione um" itemValue="" />
								<f:selectItem itemLabel="boolean value" itemValue="1.3.6.1.4.1.1466.115.121.1.7" />
								<f:selectItem itemLabel="Unicode (UTF-8) string" itemValue="1.3.6.1.4.1.1466.115.121.1.15" />
								<f:selectItem itemLabel="LDAP DN" itemValue="1.3.6.1.4.1.1466.115.121.1.12" />
								<f:selectItem itemLabel="integer" itemValue="1.3.6.1.4.1.1466.115.121.1.27" />
								<f:selectItem itemLabel="numeric string" itemValue="1.3.6.1.4.1.1466.115.121.1.36" />
								<f:selectItem itemLabel="object identifier" itemValue="1.3.6.1.4.1.1466.115.121.1.38" />
								<f:selectItem itemLabel="arbitrary octets" itemValue="1.3.6.1.4.1.1466.115.121.1.40" />
							</p:selectOneMenu>
						</h:column>
						<h:column>
							<p:message for="sintaxe" />
						</h:column>

						<h:column>
							<h:outputText value="#{bundle['lbl_monoValorado']}" />
						</h:column>
						<h:column>
							<p:selectBooleanCheckbox id="monovalorado" value="#{controle.tipoDeAtributo.monovalorado}" />
						</h:column>
						<h:column>
							<p:message for="monovalorado" />
						</h:column>

						<h:column>
							<h:outputText value="#{bundle['lbl_usagem']}" />
						</h:column>
						<h:column>
							<p:selectOneRadio id="usagem" layout="pageDirection" value="#{controle.tipoDeAtributo.usagem}">
								<f:selectItem itemValue="userApplications" itemLabel="#{bundle['lbl_aplicacaousuario']}" />
								<f:selectItem itemValue="directoryOperation" itemLabel="#{bundle['lbl_aplicacaodiretorio']}" />
								<f:selectItem itemValue="distributedOperation" itemLabel="#{bundle['lbl_aplicacaodistribuida']}" />
								<f:selectItem itemValue="dSAOperation" itemLabel="#{bundle['lbl_aplicacaodsa']}" />
							</p:selectOneRadio>
						</h:column>
						<h:column>
							<p:message for="usagem" />
						</h:column>

					</h:panelGrid>

					<p:commandButton value="#{bundle['btn_salvar']}" image="ui-icon ui-icon-disk"
						update="painel" action="#{controle.salvarTipoDeAtributo}" 
            ajax="false"/>
					<p:commandButton value="#{bundle['btn_limpar']}" image="ui-icon ui-icon-close" 
						update="painel" action="#{controle.limpar}"/>


				</p:panel>
			</h:form>
</h:body>
</html>